Page({
  data: {
  jokeList:''
},
/**
 * 生命周期函数--监听页面加载
 */
onLoad: function(options) {
  var thatObj=this;
  wx.request({
    url: 
   'https://api.jisuapi.com/xiaohua/text?pagenum=1&pagesize=1&sort=rand&appkey=66a2a94aa82d4c15', 
    success(res) {
      console.log(res)
      //将获取到的数据赋值
      thatObj.setData({
        jokeList:res.data.result.list[0].content
      })
    }
  })
}
})

